﻿<Window x:Class="WpfXamlWriterReader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid x:Name="gridMain">
        <StackPanel Orientation="Horizontal">
            <Button  Width="100" Height="30" VerticalAlignment="Top" Content="add" x:Name="btnAdd"  Click="btnAdd_Click" />
            <Button  Width="100" Height="30" VerticalAlignment="Top"  Content="result" x:Name="btnResult"    Click="btnResult_Click"/>
            <Button  Width="100" Height="30" VerticalAlignment="Top"  Content="load" x:Name="btnLoad"  Click="btnLoad_Click"/>
            <Button  Width="100" Height="30" VerticalAlignment="Top"  Content="clear" x:Name="btnClear"   Click="btnClear_Click"/>
        </StackPanel>
        <Canvas  Margin="0,50,0,0"  VerticalAlignment="Stretch" x:Name="canMain">
            <Canvas.Background>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <LinearGradientBrush.GradientStops>
                        <GradientStop Offset="0" Color="LightGreen" />
                        <GradientStop Offset="1" Color="DarkGreen" />
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
            </Canvas.Background>
        </Canvas>
    </Grid>
</Window>
